package com.wufan.day02;

/**
 * @author SongWufan
 * @date 2021/3/4 21:19
 */
public class ArrayTest2 {
    public static void main(String[] args) {
        int[][] arr = new int[][]{{123},{4,5},{6,7,8}};
        String[][] arr1 = new String[3][2];
        String[][] arr2 = new String[3][1];
        //类型推断
        int[] arr3 = {1,2,3,4};
        arr2[1] = new String[3];
        System.out.println(arr.length);
        System.out.println(arr[1].length);

        for (int i = 0; i < arr.length; i++){
            for (int j = 0; j < arr[i].length; j++){
                System.out.println(arr[i][j]);
            }
            System.out.println();
        }
    }
}
